﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Xml;


namespace QDT.Payment.AllInPay.Api
{

    /// <summary>
    /// QTransRet 的摘要说明
    /// </summary>
    public class QTransRetRequest : Request
    {
        public QTransRetRequest(QTransRetPackage qtrans, string userName, string password)
            : base("200004", "03", 2, userName, password, qtrans.Querysn, "QTRANSREQ")
          {

              m_elInfo.AppendChild(CreateValueElement("LEVEL", "3"));
              XmlElement trxEl = m_elBody;
               
              trxEl.AppendChild(CreateValueElement("MERCHANT_ID", qtrans.Merid));
              trxEl.AppendChild(CreateValueElement("QUERY_SN", qtrans.Querysn));
              trxEl.AppendChild(CreateValueElement("STATUS", qtrans.Status));
              trxEl.AppendChild(CreateValueElement("TYPE", qtrans.Type));
              trxEl.AppendChild(CreateValueElement("START_DAY",qtrans.Startday));
              trxEl.AppendChild(CreateValueElement("END_DAY", qtrans.Endday));
          }
    }




}

